package com.ocom.jobhandler.feign;

import com.ocom.common.constant.MqSimpleApiUrl;
import com.ocom.common.request.simple.AllPersonRequest;
import com.ocom.common.request.simple.MqTimerRequest;
import com.ocom.common.request.simple.kcmz.KCMZConsumeRecordRequest;
import com.ocom.common.request.simple.ssgl.SSGLAccessRecordRequest;
import com.ocom.common.request.simple.ssgl.SSGLAttendanceRecordRequest;
import com.ocom.common.request.simple.ssgl.SSGLNewPersonInfoRequest;
import com.ocom.common.request.web.CommonPidVo;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "mq-simple")
public interface MqSimpleClientService {

    @PostMapping(MqSimpleApiUrl.URL_SsglMqNewPersonInfo)
    public Result ssglMqNewPersonInfo(@RequestBody SSGLNewPersonInfoRequest request);

    @PostMapping(MqSimpleApiUrl.URL_SsglMqAccessRecord)
    public Result ssglMqAccessRecord(@RequestBody SSGLAccessRecordRequest request);

    @PostMapping(MqSimpleApiUrl.URL_CCBZHSHMqAccessRecord)
    Result ccbZHSHMQNewPersonInfo(@RequestBody SSGLNewPersonInfoRequest request);

    @PostMapping(MqSimpleApiUrl.URL_wgkqMqNewPersonInfo)
    public Result wgkqMqNewPersonInfo(@RequestBody SSGLNewPersonInfoRequest request);

    @PostMapping(MqSimpleApiUrl.URL_KcmzctMqConsumeRecord)
    public Result kcmzctMqConsumeRecord(@RequestBody KCMZConsumeRecordRequest request);

    @PostMapping(MqSimpleApiUrl.URL_unicomMqConsEvent)
    public Result unicomMqConsEvent(@RequestBody MqTimerRequest request);

    @PostMapping(MqSimpleApiUrl.URL_ocomkqMqNewPersonInfo)
    public Result ocomKqMqNewPersonInfo(@RequestBody SSGLNewPersonInfoRequest request);

    @PostMapping(MqSimpleApiUrl.URL_ocomkqMqAttendanceRecord)
    public Result ocomKqAttendanceRecord(@RequestBody SSGLAttendanceRecordRequest request);

    @PostMapping(MqSimpleApiUrl.URL_unicomMqUpdateAccType)
    public Result updateAccType(@RequestBody CommonPidVo request) ;

    @PostMapping(MqSimpleApiUrl.URL_allPerson)
    public Result allPerson(@RequestBody AllPersonRequest request);
}
